package com.bigzero.workflow.modules.process.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.Map;

/**
 * 流程管理vo
 *
 * @author fanxinxiong
 * @date 2025-02-12 12:38
 **/
@Data
public class DefinitionVo {

    /**流程id*/
    @Schema(description = "流程id")
    private String id;

    /**部署id*/
    @Schema(description = "部署id")
    private String deploymentId;

    /**流程名称*/
    @Schema(description = "流程名称")
    private String name;

    /**流程key*/
    @Schema(description = "流程key")
    private String key;

    /**版本*/
    @Schema(description = "版本")
    private int version;

    /**主表单表单详情*/
    @Schema(description = "主表单表单详情")
    private Map<String, Object> formJson;

    /**是否挂起状态*/
    @Schema(description = "是否挂起状态")
    private boolean isSuspended;

    /**部署时间*/
    @Schema(description = "部署时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deploymentTime;
}
